package DAITINGTING.animal;

public class Frog extends Animal implements IAnimal{
    String teyou;

    String wholeLife(){

        String s= born();

        String f=findFood();

        String e=eat();

        String o=old();

        String i=sick();

        String d=die();

        return s+"\n"+f+"\n"+e+"\n"+o+"\n"+i+"\n"+d;

    }
    String GetInfo(){
        return "我是"+name+",我的食物是"+food+",我居住在"+area+",我特有的是"+teyou;
    }
    Frog(String name, String food, String area, String teyou) {
        super(name, food, area);
        this.teyou = teyou;
    }
    @Override
    String eat() {
        System.out.println(super.name+"吃"+super.food);
        return super.name+"吃"+super.food;
    }

    @Override
    String findFood() {
        System.out.println("我找食物辛苦");
        return null;
    }

    @Override
    public String born() {
        System.out.println("我以前是蝌蚪");
        return null;
    }

    @Override
    public String old() {
System.out.println("老了的时候就变成了=青蛙");
        return null;
    }

    @Override
    public String sick() {
        System.out.println("我小的时候没有什么病，但是有小感冒哦");
        return null;
    }

    @Override
    public String die() {
        System.out.println("我幸福的过了一辈子");
        return null;
    }
}
